#!/usr/bin/env python
#coding=utf-8

#3.3.3 发送post请求
import requests

key_dict = {'key1': 'value1', 'key2': 'value2'}
r = requests.post("http://127.0.0.1:5000/post", data=key_dict)
print('URL编码:', r.url)
print('响应体:\n', r.text)